package com.beiming.libra.common.mail.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @description: email.properties 自定义属性映射
 * @author: wangfuming
 * @create: 2018年03月09日 11:13
 **/
@Component
@Data
@ConfigurationProperties(prefix = "mail")
@PropertySource(value = "classpath:email.properties", ignoreResourceNotFound = true, encoding = "utf-8")
public class EmailProperties {

  private String host;
  private String from;
  private String username;
  private String password;
  private String confirmFileName;
  private String confirmFilePath;
  private String confirmTimeOut;
  private String codeFileName;
  private String codeFilePath;
  private long codeTimeOut;
  private String passwordFileName;
  private String passwordFilePat;
  private String subAccountPwdFileName;
  private String subAccountPwdfilepath;
  private String log4jerrorToMail;

}
